package one.deploy.dto;

import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * @author cjr
 */
@Data
@Builder
public class ApplicationListResponse {
    private String name;
    private String lastVersion;
    private List<Action> actions;
    private List<Instance> instances;

    private boolean versionLast;

    @Data
    @Builder
    public static class Action {
        private String name;
        private String url;
    }

    @Data
    @Builder
    public static class Instance {
        private String instanceId;
        private String status;
        private String version;
    }
}